package com.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/*
@author By 林中小鸟
@package  com.self.introduction.entity
@create 2021 - 10 - 2021\10\6 0006
@QQ: 357182695
@Em: themooncss@gmail.com
*/
@TableName("token")
@Data
public class Token {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField(value = "uid")
    private String uid;
    //token
    @TableField(value = "token")
    private String token;
    //过期时间
    @TableField(value = "expire_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;
    //更新时间
    @TableField(value = "update_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
